package com.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.common.utils.PageUtils;
import com.mall.product.entity.AttrEntity;
import com.mall.product.vo.AttrRespVo;
import com.mall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author super
 * @email 3217985254@qq.com
 * @date 2023-07-16 17:13:15
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryListPage(Map<String, Object> params, Long catelogId, String type);

    void saveAttr(AttrVo attrVo);

    void updateDetail(AttrVo attrVo);

    AttrRespVo getInfoById(Long attrId);

    /**
     * 根据分组Id获取关联所有属性
     * @param attrGroupId
     * @return
     */
    List<AttrEntity> getAllByGroupId(Long attrGroupId);
}

